﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="HangHoaForm.aspx.cs" Inherits="WebShoes.Admin.HangHoaForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="panel-heading">
    <h3 class="panel-title"><b>Thông tin hàng hóa</b></h3>
    </div>
<div class="panel-body">
    <div class="form-horizontal" role="form">
        <asp:HiddenField ID="hdfMaHangHoa" runat="server" />
        <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">Tên Hàng<asp:RequiredFieldValidator 
                ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTenHangHoa" 
                Display="Dynamic" ErrorMessage="Phải nhập tên hàng hóa" ForeColor="Red">*</asp:RequiredFieldValidator>
            </label>
        <div class="col-sm-10">
            <asp:TextBox ID="txtTenHangHoa" runat="server" CssClass="form-control" 
                placeholder="Nhập tên hàng hóa" ></asp:TextBox>
        </div>
        </div>
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Loại Hàng Hóa</label>
        <div class="col-sm-10">
            <asp:DropDownList ID="ddlLoaiHangHoa" runat="server" CssClass="form-control" 
                >
                
            </asp:DropDownList>
        </div>
        </div>
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Chủng Loại</label>
        <div class="col-sm-10">
            <asp:DropDownList ID="ddlChungLoai" runat="server" CssClass="form-control" 
                AutoPostBack="True" onselectedindexchanged="ddlChungLoai_SelectedIndexChanged">
                
            </asp:DropDownList>
        </div>
        </div>
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Hãng Sản Xuất</label>
        <div class="col-sm-10">
            <asp:DropDownList ID="ddlNhaSanXuat" runat="server" CssClass="form-control" 
                >
                
            </asp:DropDownList>
        </div>
        </div>
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Kích Cỡ (Size)</label>
        <div class="col-sm-10">
            <asp:DropDownList ID="ddlKichCo" runat="server" CssClass="form-control">
                
            </asp:DropDownList>
        </div>
        </div>
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Số lượng</label>
        <div class="col-sm-10">
            <asp:TextBox ID="txtSoLuong" runat="server" CssClass="form-control" 
                placeholder="Nhập số lượng hàng hóa"></asp:TextBox>
        </div>
        </div>
        
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Đơn Giá<asp:RangeValidator 
                ID="RangeValidator1" runat="server" ControlToValidate="txtDonGia" 
                Display="Dynamic" ErrorMessage="Chỉ được trong khoảng 100k ~ 10M" 
                ForeColor="Red" MaximumValue="100000000" MinimumValue="100000" Type="Double">*</asp:RangeValidator>
            </label>
        <div class="col-sm-10">
            <asp:TextBox ID="txtDonGia" runat="server" CssClass="form-control" 
                placeholder="Nhập đơn giá" 
                TextMode="Number"></asp:TextBox>
        </div>
        </div>
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Khuyến mãi<asp:RangeValidator 
                ID="RangeValidator2" runat="server" ControlToValidate="txtKhuyenMai" 
                Display="Dynamic" ErrorMessage="Chỉ được trong khoảng 0 ~ 100" 
                ForeColor="Red" MaximumValue="100" MinimumValue="0" Type="Integer">*</asp:RangeValidator>
        </label>
        <div class="col-sm-10">
            <asp:TextBox ID="txtKhuyenMai" runat="server" CssClass="form-control" 
                placeholder="Nhập % khuyến mãi" TextMode="Number" 
                >0</asp:TextBox>
        </div>
        </div>
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Hình Ảnh</label>
        <div class="col-sm-10">
            <asp:FileUpload ID="FileUpload1" runat="server"/>
            <br />
            <asp:Image ID="Image1" runat="server" ImageUrl="~/images/default.gif" 
                Width="100" CssClass="img-rounded" />
            <asp:HiddenField ID="hfHinhAnh" runat="server" />
        </div>
        </div>
        
        <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">Chi tiết</label>
        <div class="col-sm-10">
            <asp:TextBox ID="txtChiTiet" runat="server" CssClass="form-control" 
                placeholder="Nhập chi tiết hàng hóa" TextMode="MultiLine" 
                ></asp:TextBox>
        </div>
        </div>
        
        

        <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <asp:LinkButton ID="btnSave" CssClass="btn btn-primary" runat="server" 
                onclick="btnSave_Click">Lưu</asp:LinkButton>
            <a href="HangHoaManagerForm.aspx" class="btn btn-default">
            Hủy bỏ
            </a>
        </div>
        </div>
        <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
            <asp:Label ID="lblThongBao" runat="server" Text="Label" ForeColor="Red"></asp:Label>
        </div>
        </div>
    </div>
</div>
</asp:Content>

